<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
		
 </body>
</html>
<script>
	//slice()截取数组
	var arr = ["东","西","南","北","中","发","白"];

	//传两个参数都是下标，截取的包含第一个参数，不包含第二个参数,返回截取的内容,不改变原数组
	var a = arr.slice(1, 4); 
	
	console.log(a);
	console.log(arr);
</script>
